package com.hopu.oa.service.role;

import com.hopu.oa.entity.user.AoaRole;
import com.hopu.oa.entity.user.AoaRolePowerList;
import com.hopu.oa.entity.user.AoaUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface roleService {

    List<AoaRole> selectAllRole(@Param("roleName") String roleName, @Param("index") Integer index, @Param("size") Integer size);

    AoaRole selectRoleByRoleName(String roleName);

    AoaRole selectRoleByRoleId(Integer roleId);

    int updateRole(AoaRole aoaRole);

    int deleteRoleAndRoleList(@Param("roleId") Integer roleId);

    int isnertRole(AoaRole aoaRole);

    int insertRoleList(@Param("list") List<Integer> list, @Param("roleId") Integer roleId);

}
